<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { useRoute, useRouter } from 'vue-router';


const route = useRoute();
const router = useRouter();

//评论id
const commentId = Number(route.params.id);
//评论状态
const commentStatus = ref(route.params.status);
//返回
const handleBack = () => {
  router.back();
};
</script>

<template>

  <van-nav-bar
      title="评论详情"
      left-text="返回"
      left-arrow
      @click-left="handleBack"
  />
  <h1>评论详情 {{commentId}}</h1>
  <h1>评论状态 {{commentStatus}}</h1>
</template>

<style scoped>

</style>